package org.inspursc.s0517.health.evaluation.service;

import org.inspursc.s0517.health.evaluation.dto.InsAnRadioDTO;
import org.inspursc.s0517.health.evaluation.entity.InsAnRadio;

import java.util.List;

/**
 * @author B_Dream
 * @date 2018/6/6 16:32
 */
public interface InsAnRadioService {
    /**
     * 保存回答选项
     *
     * @param anRadio
     * @return
     */
    InsAnRadio saveAnRadio(InsAnRadio anRadio);

    /**
     * 保存批量回答选项
     *
     * @param anRadios
     * @return
     */
    List<InsAnRadio> saveBatchAnRadio(List<InsAnRadio> anRadios);

    /**
     * 根据机构id及问卷ID查找回答选项
     *
     * @param suId
     * @param perId
     * @return
     */
    List<InsAnRadioDTO> findAnRadio(Integer suId, Integer perId);

    List<InsAnRadioDTO> findAllBySuAnswerId(Integer suAnswerId);

    int deleteByAssessmentResultId(Integer assessmentResultId);
}
